/* 时间格式化 */
const timeFomatter = (timeing) => {
    let date = new Date(timeing);
    let year = date.getFullYear();
    let month = date.getMonth() + 1;
    let day = date.getDate();
    
    let hour = date.getHours();
    let minute = date.getMinutes();
    
    day = day < 10? String(day).padStart(2,"0") : day;
    hour = hour < 10? String(hour).padStart(2,"0") : hour;
    minute = minute < 10? String(minute).padStart(2,"0") : minute;

    return `${year}-${month}-${day} ${hour}:${minute}`
}
export default  timeFomatter 